import 'package:meta/meta.dart';
// import 'package:redux/redux.dart';

@immutable
class PlayerState {
  Map screenInfo = {};

  PlayerState({this.screenInfo});
}

/// 定义操作该State的全部Action
enum PlayerActions { setTags }

class PlayerAction {
  final PlayerActions type;
  PlayerAction({this.type});
}

///  reducer会根据传进来的action生成新的CountState
PlayerState playerStateReducer(PlayerState state, action) {
  /// 匹配Action
  switch (action) {
    case PlayerActions.setTags:
      // setTags(state, action.tags);
      break;
    default:
      break;
  }
  return state;
}
